package delayMessage.cycle;

import delayMessage.queue.JobCallBack;

/**
 * 任务体
 *
 * Created by Zhou_Bing on 2018/9/29.
 */
public class Job {

    private int cycleNum=0;
    private JobCallBack callBack;

    Job(int delaySecond,JobCallBack callBack){
        this.cycleNum = delaySecond/3600;
        this.callBack = callBack;
    }

    public int getCycleNum(){
        return this.cycleNum;
    }

    public void execute(){
        this.callBack.execute();
    }
}
